package me.zhengjie.modules.management.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;


/**
 * @Author: yuchao.wang
 * @Date: 2020/12/5
 * @Description :教室类型表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConferenceType {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "TypeID")
    private Integer typeId;

    @NotNull
    @ApiModelProperty(value = "类型名称")
    public String typeName;

    @NotNull
    @ApiModelProperty(value = "最少人数")
    public Integer minPeoples;

    @NotNull
    @ApiModelProperty(value = "最多人数")
    public Integer maxPeoples;

    @NotNull
    @ApiModelProperty(value = "状态：1使用 0不在使用")
    public Boolean status=true;

    @ApiModelProperty(value = "备注")
    public String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 出参格式化
    @ApiModelProperty(value = "创建时间")
    public Timestamp createDateTime;

    @ApiModelProperty(value = "创建人工号")
    public String createUserId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 出参格式化
    @ApiModelProperty(value = "修改时间")
    public Timestamp modifyDateTime;

    @ApiModelProperty(value = "修改人工号")
    public String modifyUserId;

}
